package com.lwx.design.chain;

public class ChainHandler {
	AbstractFilter filter1;
	public ChainHandler(){
		filter1 = new Filter1();
		AbstractFilter filter2 = new Filter2();
		AbstractFilter filter3 = new Filter3();
		
		filter1.setNextFilter(filter3);
		filter3.setNextFilter(filter2);
	}
	
	public void doHandler(){
		filter1.doFilter();
	}
}
